package com.aixs.crud.utils;

import lombok.Getter;

@Getter
public enum ServerCode {

    //成功
    SUCCESS( 0, "成功" ), //失败
    ERROR( 1, "失败" ), //需要登陆
    NEED_LOGIN( 10, "需要登陆" ), //参数错误
    Illegal_ARGUMENT( 2, "参数错误" );

    private final int code;

    private final String desc;

    ServerCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

}
